<template>
  <div class="home">
    <div class="top">
      <!-- <img src="@/assets/img/touTime2.png" alt=""> -->
      <p>
        <span>首页</span>
        <van-icon name="chat-o" size="20" badge="9" />
      </p>
    </div>
    <div class="aaa">
      <div class="img" />
    </div>

    <div class="popup">
      <a @click="upload">
        <van-icon name="orders-o" size="40" /><span>我要上传</span>
      </a>
      <a @click="renwu">
        <van-icon name="orders-o" size="40" /><span>我的任务</span>
      </a>
    </div>
    <van-tabs v-model="activeName">
      <van-tab title="政策法规" name="a">
        <div class="content">
          <div class="content-l">
            <span>2021年度中等偏下收入住房困难家庭申请保障收入标准</span>
            <p>发布时间：2021/05/21</p>
          </div>
          <div class="content-r">
            <img src="@/assets/img/zixun1.png" alt="">
          </div>
        </div>
        <div class="content">
          <div class="content-l">
            <span>2021年度中等偏下收入住房困难家庭申请保障收入标准</span>
            <p>发布时间：2021/05/21</p>
          </div>
          <div class="content-r">
            <img src="@/assets/img/zixun1.png" alt="">
          </div>
        </div>
        <div class="content">
          <div class="content-l">
            <span>2021年度中等偏下收入住房困难家庭申请保障收入标准</span>
            <p>发布时间：2021/05/21</p>
          </div>
          <div class="content-r">
            <img src="@/assets/img/zixun1.png" alt="">
          </div>
        </div>
      </van-tab>
      <van-tab title="新闻资讯" name="b">
        <div class="content">
          <div class="content-l">
            <span>2020年度中等偏下收入住房困难家庭申请保障收入标准</span>
            <p>发布时间：2021/05/21</p>
          </div>
          <div class="content-r">
            <img src="@/assets/img/zixun1.png" alt="">
          </div>
        </div>
        <div class="content">
          <div class="content-l">
            <span>2020年度中等偏下收入住房困难家庭申请保障收入标准</span>
            <p>发布时间：2021/05/21</p>
          </div>
          <div class="content-r">
            <img src="@/assets/img/zixun1.png" alt="">
          </div>
        </div>
        <div class="content">
          <div class="content-l">
            <span>2020年度中等偏下收入住房困难家庭申请保障收入标准</span>
            <p>发布时间：2021/05/21</p>
          </div>
          <div class="content-r">
            <img src="@/assets/img/zixun1.png" alt="">
          </div>
        </div>
      </van-tab>
    </van-tabs>
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item>
        <van-icon name="add-o" size="40" />
      </van-tabbar-item>
      <van-tabbar-item icon="contact">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
import { Tab, Tabs, TabbarItem, Tabbar, Icon } from 'vant'

export default {
  components: {
    [Tab.name]: Tab,
    [Tabs.name]: Tabs,
    [TabbarItem.name]: TabbarItem,
    [Tabbar.name]: Tabbar,
    [Icon.name]: Icon
  },
  data() {
    return {
      activeName: 'a',
      active: 0,
      icon: {
        active: 'https://img01.yzcdn.cn/vant/user-active.png',
        inactive: 'https://img01.yzcdn.cn/vant/user-inactive.png'
      }
    }
  },
  methods: {
    upload() {
      this.$router.push('/sspone')
    },
    renwu() {
      this.$router.push('/MyTask')
    }
  }
}
</script>
<style scoped>
* {
  margin: 0;
  padding: 0;
  font-size: 0.12rem;
}
p {
  padding: 0;
  margin: 0;
  font-size: 0.12rem;
}
a {
  text-decoration: none;
  color: #000;
}

.top {
  display: flex;
  flex-direction: column;
}
.top > p {
  padding-top: 0.1rem;
  padding-bottom: 0.1rem;
  display: flex;
  font-size: 0.16rem;
  /* margin: -0.44rem 0 0 0; */
  padding-left: 0.15rem;
}
.top > p > span {
  font-size: 0.16rem;
  font-weight: bold;
}
.top > p > .van-icon {
  height: 0.2rem;
  width: 0.2rem;
  margin-left: 2.9rem;
  justify-content: space-between;
}
.aaa {
  background-color: #cccccc;
  padding: 0.15rem;
}
.img {
  padding-top: 0.06rem;
  width: 100%;
  height: 2rem;
  background: url(../../assets/img/zixun1.png) no-repeat;
  background-size: 3.45rem;
  /* background-color: #eee; */
}
.popup {
  background-color: #fff;
  display: flex;
  margin-left: 0.15rem;
  width: 92%;
  border: 1px solid #eee;
  border-radius: 0.08rem;
  padding: 0.2rem 0 0.1rem;
  margin-top: -0.4rem;
  box-shadow: 0 5px 15px 0;
  z-index: 99;
}
.popup > a {
  flex: 1;
  justify-content: center;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.popup > a > img {
  justify-content: center;
  margin-left: 0.7rem;
  width: 0.3rem;
  height: 0.3rem;
}
.popup > a > span {
  margin-top: 0.2rem;
}
.van-tabs {
  padding: 0.5rem 0.15rem 0 0.15rem;
}
.content {
  overflow: auto;
  margin-top: 0.1rem;
  display: flex;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.1rem;
}
.content-l > p {
  margin-top: 0.1rem;
}
.content-l > span {
  margin-top: 0.1rem;
  font-size: 0.14rem;
  font-weight: bold;
}
.content-r > img {
  height: 0.55rem;
  width: 0.9rem;
}
.weight {
  font-weight: bold;
}
</style>
